#include"server.hpp"

void Usage()
{
  cout << "\n\t./server port" << endl;
}

int main(int argc,char* argv[])
{
  if(argc != 2)
  {
    Usage();
    exit(USAGE_ERR);
  }
 
  uint16_t port = atoi(argv[1]);

  ns_server* server = new ns_server(port);
  
  server->Start();
  server->rev();
  return 0;
}
